﻿@model string[]
<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="~/scripts/layui/css/layui.css" rel="stylesheet" />
    <style type="text/css">
        .fly-imagecode {
            position: relative;
            cursor: pointer;
        }
    </style>
    <title>@ViewBag.Title</title>
    <script src="~/scripts/jquery-1.10.2.min.js"></script>
    <script src="~/scripts/layui/layui.js"></script>
</head>
<body style="background-color: #FBFBFB;">
    <div class="layui-header layui-bg-green">
        <ul class="layui-nav layui-layout-left layui-bg-green">
            <li class="layui-nav-item"><a href="">首页</a></li>
            <li class="layui-nav-item"><a href="">登录</a></li>
            <li class="layui-nav-item"><a href="">注册</a></li>
            <li class="layui-nav-item"><a href="">社区</a></li>
        </ul>
        @if (!string.IsNullOrWhiteSpace(Model[0]))
        {
            <ul class="layui-nav layui-layout-right layui-bg-green">
                <li class="layui-nav-item">
                    <a href="javascript:;">
                        <img src="../Images/@Model[2]" class="layui-nav-img" />
                        @Model[1]
                    </a>
                    <dl class="layui-nav-child">
                        <dd><a href="">基本资料</a></dd>
                        <dd><a href="">安全设置</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="SignOut">退了</a></li>
            </ul>
        }
    </div>

    <script>
        //注意：导航 依赖 element 模块，否则无法进行功能性操作
        layui.use('element', 'layer', function () {
            var element = layui.element,
                layer = layui.layer;
        });
    </script>
    <div>
        @RenderBody()
    </div>
</body>
</html>
